/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.webaccess.retailws.Util;

/**
 *
 * @author Owner
 */
public class CheckoutUtil {

    UserAccountUtil userUtil = null;

    public String saveAddressInfo(Long userId, Long addressId, String editPrefix, String editFirstName, String editMiddleName, String editLastName, String editHouse, String editStreet, String editCity, String editPinCode, String editState, String editContact) {
        String SUCCESS = "";
        try {
            userUtil = new UserAccountUtil();
            SUCCESS = userUtil.saveAddressInfo(userId, addressId, editPrefix, editFirstName, editMiddleName, editLastName, editHouse, editStreet, editCity, editPinCode, editState, editContact);
            if (SUCCESS.equalsIgnoreCase("showacctdashboard")) {
                SUCCESS = "checkoutaddrsuccess";
            } else {
                SUCCESS = "checkoutaddrfailure";
            }
        } catch (Exception ex) {
            ex.printStackTrace();
        } finally {
            return SUCCESS;
        }
    }
}
